<ng-container
  *ngIf="(!ezForm.ezFormConfiguration.layout || ezForm.ezFormConfiguration.layout !== 'inline'); else formItem">
  <div nz-row [nzGutter]="16">
    <ng-container *ngFor="let item of ezFormGroupConfiguration?.controls">
      <div nz-col [hidden]="item.hidden"
        [nzSpan]="item.span || (ezForm.ezFormConfiguration.cols ? 24 / ezForm.ezFormConfiguration.cols : 24)">
        <ez-form-item [ezFormItemConfiguration]="item" [group]="ezForm.formGroup"></ez-form-item>
      </div>
    </ng-container>
  </div>
</ng-container>

<ng-template #formItem>
  <ng-container *ngFor="let item of ezFormGroupConfiguration?.controls">
    <ez-form-item [ezFormItemConfiguration]="item" [group]="ezForm.formGroup"></ez-form-item>
  </ng-container>
</ng-template>
